package com.ycrlkj.android.modulescore.main.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.ycrlkj.android.modulespublic.common.map.amap.GaodeLocation;

public class GaodeLocationViewModel extends ViewModel {

    public MutableLiveData<GaodeLocation> gaodeLocation;
    public MutableLiveData<Integer> type = new MutableLiveData<>(1);

    public MutableLiveData<GaodeLocation> getGaodeLocation(){
        if(gaodeLocation == null){
            gaodeLocation = new MutableLiveData<>();
            gaodeLocation.setValue(new GaodeLocation());
        }
        return gaodeLocation;
    }

}
